<template>
	<view>
		<view class="footer">
			<view>服务热线：</view>
			<view @tap="makePhoneCall" class="fz28 line">{{contact.phone}}</view>
			<view>联系地址：</view>
			<view class="fz12"><text>{{contact.address}}</text></view>
		</view>
		<view class="copyright">
			<text>Copyright © 2013-2021 福州丰拓建材有限公司 All Rights </text>
		</view>
	</view>
</template>

<script>
	import base from '../../js/base.js';
	import app from '../../js/app.js';
	export default {
		data() {
			return {
				contact : {},
				phone:'0592-6668888'
			}
		},
		methods:{
			makePhoneCall: function () {
				uni.makePhoneCall({
					phoneNumber: this.phone
				})
			}
		},
		mounted() {
			let This = this;
			base.request({
				url:base.urltext('/itorder/info_port/contact'),
				header:{ 'content-type': 'application/x-www-form-urlencoded' },
				success:function(res){
					if(res.data.success>0)
					{
						if(res.data.list.email)
						{
							res.data.list.email=res.data.list.email.split(',');
							res.data.list.email=res.data.list.email[0];
						}
						if(res.data.list.phone)
						{
							res.data.list.phone=res.data.list.phone.split(',');
							res.data.list.phone=res.data.list.phone[0];
							This.phone= res.data.list.phone;
						}
						This.contact = res.data.list;
					}
				}
			})
		}
	}
</script>

<style>
</style>
